package kr.pe.mkseo.data.persistence;

import java.lang.annotation.*;

/**
 * Marks whether a field is stored as CSV data. When serializing a class, if
 * this field is present, @ref{kr.pe.mkseo.data.persistence.CsvDatabase} will
 * write that field to a file.
 * 
 * Optionally, each field can have its order like @CsvData(n). Given n, that
 * field will be the nth column in CSV file. This feature is for the easy
 * manipulation of CSV data by external program like Excel.
 * 
 * @author mkseo
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface CsvDataField {
	int Order();
}
